<template>
	<view class="mainpadding">
		<video :src="dataAll.ssgg_video_text" object-fit="cover" v-if="dataAll.ssgg_video_text" style="height: 300rpx;width: 100%;"></video>
		<view class="strongtext margin_top ershiba">{{dataAll.ssgg_des}}</view>
		<view class="margin_top">
			
		</view>
		<image :src="item" style="width: 100%;" mode="widthFix" v-for="(item,index) in dataAll.ssgg_images_text" :key="index" @click="lbtpriview(index,dataAll.ssgg_images_text)"></image>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listid: "",
				dataAll: {},
			}
		},
		onLoad(options) {
			this.listid = options.id
			this.getDetail()
		},
		methods: {
			getDetail() {
				httpRequest.request('/api/sscl/ssDetail', 'GET', {
					id: this.listid
				}, false, false, true).then(res => {
					this.dataAll = res.data
				})
			},
			lbtpriview(index,arr) {
							var i = arr; //获取当前页面的轮播图数据
							//uniapp预览轮播图
							uni.previewImage({
								current: index, //预览图片的下标
								urls: i //预览图片的地址，必须要数组形式，如果不是数组形式就转换成数组形式就可以
							})
						},
		}
	}
</script>

<style>

</style>